﻿using System;

namespace Esint.Common.Model.DbAttribute
{
    /// <summary>
    /// 数据库列特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public class DbColumnAttribute : Attribute
    {
        /// <summary>
        /// 数据库字段名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 数据的c#类型
        /// </summary>
        public DbColumnDataType CSharpType { get; set; }

        /// <summary>
        /// 注释内容
        /// </summary>
        public string Commet { get; set; }

    }
}
